Automattic\WooCommerce\GoogleListingsAndAds\Product\ProductHelper B

Total Complexity 99
Dependencies 15
Dependents 20
Total lines 747
Lines of code 337
Logical lines of code 191
Comment lines 318
Methods 36
Properties 3

Methods 36

Method Rating Maintainability Complexity Lines of code
is_sync_ready()
A
52 8 24
mark_as_invalid()
S
51 7 27
mark_as_synced()
S
51 6 25
maybe_swap_for_parent_ids()
S
56 6 17
mark_as_unsynced()
S
55 4 20
remove_google_id()
S
58 4 16
is_ready_to_notify()
S
62 5 10
get_validation_errors()
S
65 5 8
has_notified_creation()
S
59 3 16
maybe_swap_for_parent()
S
59 3 15
mark_as_notified()
S
60 3 14
update_channel_visibility()
S
60 3 14
get_mc_status()
S
62 3 12
update_empty_visibility()
S
63 3 11
mark_as_pending()
S
63 3 11
get_categories()
S
73 3 4
should_trigger_create_notification()
S
77 3 3
should_trigger_update_notification()
S
77 3 3
get_channel_visibility()
S
62 2 12
is_sync_failed_recently()
S
69 2 6
should_trigger_delete_notification()
S
78 2 3
get_wc_product_title()
S
67 2 8
is_product_synced()
S
72 2 5
get_wc_product_id()
S
62 2 10
maybe_swap_for_parent_id()
S
75 1 4
get_sync_status()
S
80 1 3
__construct()
S
74 1 5
is_update_failed_threshold_reached()
S
75 1 4
increment_failed_update_attempt()
S
74 1 4
is_delete_failed_threshold_reached()
S
75 1 4
increment_failed_delete_attempt()
S
74 1 4
set_notification_status()
S
80 1 3
get_wc_product_by_wp_post()
S
80 1 3
get_wc_product()
S
80 1 3
get_synced_google_product_ids()
S
80 1 3
get_offer_id()
S
79 1 3